Optimal. Leaf size=304 \[ \frac {(a e+c d x) (d+e x)^{1+n}}{2 a \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\left (c d^2+a e^2 (1-n)+\sqrt {-a} \sqrt {c} d e n\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 (-a)^{3/2} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}+\frac {\left (c d^2+a e^2 (1-n)-\sqrt {-a} \sqrt {c} d e n\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 (-a)^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 304, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {755, 845, 70}
\begin {gather*} -\frac {(d+e x)^{n+1} \left (\sqrt {-a} \sqrt {c} d e n+a e^2 (1-n)+c d^2\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 (-a)^{3/2} (n+1) \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (a e^2+c d^2\right )}+\frac {(d+e x)^{n+1} \left (-\sqrt {-a} \sqrt {c} d e n+a e^2 (1-n)+c d^2\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 (-a)^{3/2} (n+1) \left (\sqrt {-a} e+\sqrt {c} d\right ) \left (a e^2+c d^2\right )}+\frac {(d+e x)^{n+1} (a e+c d x)}{2 a \left (a+c x^2\right ) \left (a e^2+c d^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 755
Rule 845
Rubi steps
\begin {align*} \int \frac {(d+e x)^n}{\left (a+c x^2\right )^2} \, dx &=\frac {(a e+c d x) (d+e x)^{1+n}}{2 a \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \frac {(d+e x)^n \left (-c d^2-a e^2 (1-n)+c d e n x\right )}{a+c x^2} \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {(a e+c d x) (d+e x)^{1+n}}{2 a \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \left (\frac {\left (\sqrt {-a} \left (-c d^2-a e^2 (1-n)\right )-a \sqrt {c} d e n\right ) (d+e x)^n}{2 a \left (\sqrt {-a}-\sqrt {c} x\right )}+\frac {\left (\sqrt {-a} \left (-c d^2-a e^2 (1-n)\right )+a \sqrt {c} d e n\right ) (d+e x)^n}{2 a \left (\sqrt {-a}+\sqrt {c} x\right )}\right ) \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {(a e+c d x) (d+e x)^{1+n}}{2 a \left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {\left (c d^2+a e^2 (1-n)-\sqrt {-a} \sqrt {c} d e n\right ) \int \frac {(d+e x)^n}{\sqrt {-a}-\sqrt {c} x} \, dx}{4 (-a)^{3/2} \left (c d^2+a e^2\right )}+\frac {\left (c d^2+a e^2 (1-n)+\sqrt {-a} \sqrt {c} d e n\right ) \int \frac {(d+e x)^n}{\sqrt {-a}+\sqrt {c} x} \, dx}{4 (-a)^{3/2} \left (c d^2+a e^2\right )}\\ &=\frac {(a e+c d x) (d+e x)^{1+n}}{2 a \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\left (c d^2+a e^2 (1-n)+\sqrt {-a} \sqrt {c} d e n\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 (-a)^{3/2} \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}+\frac {\left (c d^2+a e^2 (1-n)-\sqrt {-a} \sqrt {c} d e n\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 (-a)^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.30, size = 253, normalized size = 0.83 \begin {gather*} \frac {(d+e x)^{1+n} \left (\frac {2 (a e+c d x)}{a+c x^2}+\frac {\left (c d^2-a e^2 (-1+n)+\sqrt {-a} \sqrt {c} d e n\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{\sqrt {-a} \left (\sqrt {c} d-\sqrt {-a} e\right ) (1+n)}+\frac {\left (-c d^2+a e^2 (-1+n)+\sqrt {-a} \sqrt {c} d e n\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) (1+n)}\right )}{4 a \left (c d^2+a e^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (e x +d \right )^{n}}{\left (c \,x^{2}+a \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^n}{{\left (c\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________